package com.gnrsoft.springcloud.service.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableCircuitBreaker     ////开启断路器：Hystrix 仪表盘  <artifactId>spring-cloud-starter-hystrix</artifactId> 
@EnableHystrixDashboard   //开启断路器：Hystrix 仪表盘  <artifactId>spring-boot-starter-actuator</artifactId>  <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
//Hystrix Dashboard 地址 http://localhost:8765/hystrix   监控地址 http://localhost:8765/hystrix.stream
public class ServiceFeignApplication {

	public static void main(String[] args) {
		SpringApplication.run(ServiceFeignApplication.class, args);
	}
}